<html>
	<body>
		<?php
			print "<br>";
			print "<tr>";
			$index = 0;
			 foreach($first as $cards):
		?>
			 <?php 
			 	   $path = $this->config->item('base_url'); 
			 	   $img = "/images/b1fv.png";
				   $path = $path.$img; 
			 ?> 
			 <td> <img src="<?php echo $path?>"> </td>
		<?php
		 	$index++;
		 	endforeach; 
		 	print "</tr>";
		 	print "<br>";
		 	if(count($table) > 0)
		 	{
		 		print "<tr>";
		 		foreach($table as $card)
		 		{
		 			$path = $this->config->item('base_url');
		 			$img = "/images/".$card['suit_id']."_".$card['face'].".png";
		 		} ?>
		 		<td> <img src="<?php echo $path?>"> </td>
		 	<?php 
		 		print "</tr>";
		 	}
		 	print "<tr>";
		 	$index = 0;
		 	foreach($second as $cards):
		 		$path = $this->config->item('base_url'); 
			 	$meth = $path;
			 	$img = "/images/".$cards['suit_id']."_".$cards['face'].".png";
				$path = $path.$img; 
				$meth = "";
		 ?>
		 <td> <a href="<?php echo site_url('trial/set_attack/2').'/'.$index ?>"> <img src="<?php echo $path?>"> </a> <td> 
		<?php
			$index++;
			endforeach;
			$path2 = $this->config->item('base_url');
			$end = "/images/End_Turn.png";
			$end = $path2.$end;
			print "</tr> 
			<tr>";
		?>
				<td> <a href="<?php echo site_url('trial/end_attack/2') ?>"> <img src="<?php echo $end ?>"> </a> </td>
		<?php	print"</tr>
			</table>"; ?>
		

	</tr>
	</body>
</html>